﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;
using MN.Framework.Common;
using Newtonsoft.Json;

namespace EmailSender.Models
{
    [Table("EmailCategory")]
    public class EmailCategoryModel : BaseEntity
    {
        [Key]
        [Column("EmailCatId")]
        public override int ID { get; set; }

        [Display(Name = "شناسه دسته")]
        public int CatId { get; set; }

        [ForeignKey("CatId")]
        public virtual CategoryModel Category { get; set; }

        [Display(Name = "شناسه ایمیل")]
        public int EmailId { get; set; }

        [ForeignKey("EmailId")]
        public EmailAddressModel EmailAddress { get; set; }

    }
}